package com.zego.wawaji.ui.dialog.appraise;

import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;

import com.zego.wawaji.R;
import com.noble.library.apk.AppUtil;
import com.zego.wawaji.ui.dialog.popup.BottomPopup;

/**
 * 评价弹框
 * Created by Su on 2018/4/14.
 */
public class AppraiseDialog extends BottomPopup {

    public AppraiseDialog(FragmentActivity activity) {
        super(activity);
    }

    @Override
    protected View makeContentView() {
        View inflate = LayoutInflater.from(activity).inflate(R.layout.appraise_dialog, null);
        inflate.findViewById(R.id.btn_open).setOnClickListener(v -> {
            AppUtil.launchAppDetail(getContext(),"com.noble.wawaji", "");
            dismiss();
        });
        inflate.findViewById(R.id.btn_finish).setOnClickListener(v -> dismiss());
        return inflate;
    }
}
